﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="CustomerManager.aspx.cs" Inherits="admin_CustomerManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3"
                DataKeyNames="cusID" ForeColor="Black" GridLines="Vertical" OnRowDeleting="GridView1_RowDeleting"
                Width="820px" AllowPaging="True" 
                OnPageIndexChanging="GridView1_PageIndexChanging" BackColor="White" 
                BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
                EmptyDataText="No Record Found!">
                <FooterStyle BackColor="#CCCCCC" />
                <Columns>
                    <asp:BoundField DataField="NO" HeaderText="No">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_right"/>
                    <ItemStyle Width="5px" CssClass="text_right"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="cusName" HeaderText="Name">
                    <ControlStyle Width="100px" />
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="250px" CssClass="text_left"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="tel" HeaderText="Tel" >
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="150px" CssClass="text_left"/>
                    </asp:BoundField>
                    <asp:BoundField DataField="email" HeaderText="Email">
                    <HeaderStyle ForeColor="Yellow" CssClass="text_left"/>
                    <ItemStyle Width="395px" CssClass="text_left"/>
                    </asp:BoundField>
                    <asp:TemplateField ShowHeader="False">
                        <ItemStyle Width="20px" />
                        <ItemTemplate>
                            &nbsp;<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                                CommandName="Delete" ImageUrl="~/img/delete.gif" 
                                onclientclick="return confirm('Are you sure?');" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="cusID" HeaderText="ID" Visible="False" />
                </Columns>
                <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="#CCCCCC" />
<%--                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                <SortedAscendingHeaderStyle BackColor="#808080" />
                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                <SortedDescendingHeaderStyle BackColor="#383838" />--%>
            </asp:GridView>
            <table style="width: 100%">
                <tr>
                    <td colspan="2">
                        &nbsp;</td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("#ctl00_ContentPlaceHolder1_GridView1").tablesorter();
        });
    </script>
</asp:Content>

